# from __future__ import absolute_import, unicode_literals
# import os
#
# # 设置Django的settings模块
#
# from celery import Celery
#
# from devops import settings
#
# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'devops.settings')
#
# app = Celery('devops')
#
# # 使用Django的settings文件配置Celery
# app.config_from_object("config.celery_config")
#
# # 自动从所有已注册的Django app中加载任务模块
# app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
